home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 7671 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: wizvax.wizvax.net!not-for-mail
  2. From: multics@wizvax.wizvax.net (Richard Shetron)
  3. Newsgroups: comp.lang.pl1,comp.lang.c
  4. Subject: Re: PL/I and C
  5. Date: 27 Feb 1996 22:04:02 -0500
  6. Organization: Wizvax Communications, Troy, NY; USA
  7. Message-ID: <4h0gn2$mnk@wizvax.wizvax.net>
  8. References: <4gh5ru$eng@goanna.cs.rmit.EDU.AU> <AD536AAB9668B76CD@mcdialb09.it.luc.edu> <312E363C.3CDE@corp.dialog.com> <TANMOY.96Feb23212936@qcd.lanl.gov>
  9. NNTP-Posting-Host: wizvax.wizvax.net
  10.  
  11. In article <TANMOY.96Feb23212936@qcd.lanl.gov>,
  12. Tanmoy Bhattacharya <tanmoy@qcd.lanl.gov> wrote:
  13. >In article <312E363C.3CDE@corp.dialog.com>
  14. >Paul Gorodyansky <paul_gorodyansky@corp.dialog.com> writes:
  15. >
  16. ><snip>
  17. >PG: Sorry, you missed my point. If I want to have SEVERAL masks for THE SAME
  18. >PG: area of memory, that is have SEVERAL DIFFERENT Structures overlaid my
  19. >PG: buffer, C has a feature for this - a Union, where I can have members of
  20. >PG: different Nature overlaid the same area of memory, BUT, unlike PL/I, an
  21. >PG: Array CAN NOT be a member of a Union. But, it is always a case in our
  22. >PG: Text Processing - I want to look at my source record's buffer at some 
  23. >
  24. >Are you claiming that
  25. > union { int x;
  26. >     char y[4]; } z;
  27. >is invalid C? Why?
  28.  
  29. Is that int x a long int or a short int?
  30.  
  31. Last I knew the size of an int was compiler dependent.
  32.